package com.lcxw.hxzbapi.service;

import com.lcxw.hxzbapi.dao.mapper.RobotMapper;
import com.lcxw.hxzbapi.entity.pojo.Robot;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public class RobotService {

    @Resource
    RobotMapper robotMapper;

    public int insert(Robot robot) {
        return robotMapper.insert(robot);
    }

    public List<Robot> getRandomList(int num) {
        return robotMapper.getRandomList(num);
    }

    public List<Robot> getAll() {
        return robotMapper.selectList(null);
    }

}
